<h2>Show Cart</h2>
<div>
    <?php foreach ($cart['items'] as $pid=>$product):?>
    <h3><?php echo $product["name"] ?></h3>
        <table>
            <tr>
                <th>Product Size</th>
                <th>Quantity</th>
                <th>Price</th>
                <th>Actions</th>
            </tr>
                <?php foreach ($product['sizes'] as $sid=>$size):?>
                <tr>
                    <td><?php echo $size["name"] ?></td>
                    <td><?php echo $size["quantity"] ?></td>
                    <td><?php echo $size["price"] ?> €</td>
                    <td><?php echo $html->link("delete",array("action"=>"delete_product",$pid,$sid))?></td>
                </tr>
                <?php endforeach;?>
        </table>
        <div>
            Sub total <?php echo $product['subPrice']?> €
        </div>
        
    <?php endforeach;?>
    <h6>Total <?php echo $cart['totalPrice'] ?> €</h6>
    <div id="buy">
    <?php
        echo $html->link("Buy", array("action"=>"check_out"));
    ?>
    </div>
</div>